import 'package:rebase_project/src/module/Test3Widget.dart';
import 'package:rebase_project/src/module/TestWidget.dart';
import 'package:caose/export/caose_provider.dart';
//Controller
class Mmp2Notify extends CunwControllNotify{
  Future<bool> login(String phone ,String pwd)async{
    showLoadingDialog();
    await Future.delayed(Duration(seconds: 3));
    await hideLoadingDialog();
    var isOk=phone=="15566667777"&&pwd=="123456";
    if(isOk){
      gotoWidget(TestMmpWidget());
      showToast("登录成功");
    }else{
      showToast("账号或密码错误");
    }
    return isOk;
  }
}

//Controller
class Mmp3Notify extends CunwControllNotify{
  load()async{
    loading();
    await Future.delayed(Duration(seconds: 3));
    complete();
  }
}